package com.black.play.common;

import javax.swing.*;

public enum FormType {
    INPUT(JTextField.class),
    MULTILINE_INPUT(JTextArea.class),
    RADIO_BUTTON_GROUP(JButton.class),
    ;

    private final Class<? extends JComponent> target;

    FormType(Class<? extends JComponent> target)
    {
        this.target = target;
    }

    public Class<? extends JComponent> getLabel()
    {
        return target;
    }
}
